
// 表单校验规则由 schema2code 生成，不建议直接修改校验规则，而建议通过 schema2code 生成, 详情: https://uniapp.dcloud.net.cn/uniCloud/schema



const validator = {
  "type": {
    "rules": [
      {
        "format": "int"
      }
    ]
  },
  "service_location": {
    "rules": [
      {
        "format": "int"
      }
    ]
  },
  "status": {
    "rules": [
      {
        "format": "int"
      }
    ]
  },
  "user_id": {
    "rules": [
      {
        "format": "string"
      }
    ]
  },
  "paramedic_id": {
    "rules": [
      {
        "format": "string"
      }
    ]
  },
  "level": {
    "rules": [
      {
        "format": "int"
      }
    ]
  },
  "arrangement": {
    "rules": [
      {
        "format": "array"
      }
    ]
  },
  "patient_name": {
    "rules": [
      {
        "format": "string"
      }
    ]
  },
  "patient_age": {
    "rules": [
      {
        "format": "int"
      }
    ]
  },
  "tel": {
    "rules": [
      {
        "format": "string"
      }
    ]
  },
  "hospital_id": {
    "rules": [
      {
        "format": "string"
      }
    ]
  },
  "ward": {
    "rules": [
      {
        "format": "string"
      }
    ]
  },
  "mark": {
    "rules": [
      {
        "format": "string"
      }
    ]
  },
  "total_price": {
    "rules": [
      {
        "format": "int"
      }
    ]
  },
  "score": {
    "rules": [
      {
        "format": "int"
      }
    ]
  },
  "tags": {
    "rules": [
      {
        "format": "array"
      }
    ]
  },
  "comment": {
    "rules": [
      {
        "format": "string"
      }
    ]
  },
  "start_date": {
    "rules": [
      {
        "format": "date"
      }
    ]
  },
  "end_date": {
    "rules": [
      {
        "format": "date"
      }
    ]
  },
  "arrange_day": {
    "rules": [
      {
        "format": "array"
      }
    ]
  },
  "arrange_hour": {
    "rules": [
      {
        "format": "array"
      }
    ]
  },
  "day_sum": {
    "rules": [
      {
        "format": "int"
      }
    ]
  },
  "hour_sum": {
    "rules": [
      {
        "format": "int"
      }
    ]
  },
  "start_hour": {
    "rules": [
      {
        "format": "string"
      }
    ]
  },
  "end_hour": {
    "rules": [
      {
        "format": "string"
      }
    ]
  },
  "pay_type": {
    "rules": [
      {
        "format": "int"
      }
    ]
  },
  "platform": {
    "rules": [
      {
        "format": "String"
      }
    ]
  },
  "create_time": {
    "rules": [
      {
        "format": "timestamp"
      }
    ]
  },
  "update_time": {
    "rules": [
      {
        "format": "timestamp"
      }
    ]
  },
  "paid_time": {
    "rules": [
      {
        "format": "timestamp"
      }
    ]
  },
  "refund_time": {
    "rules": [
      {
        "format": "timestamp"
      }
    ]
  },
  "refund_desc": {
    "rules": [
      {
        "format": "String"
      }
    ]
  },
  "transaction_id": {
    "rules": [
      {
        "format": "String"
      }
    ]
  },
  "updated_at": {
    "rules": [
      {
        "format": "timestamp"
      }
    ],
    "defaultValue": {
      "$env": "now"
    }
  }
}

const enumConverter = {}

export { validator, enumConverter }
